package com.zero.lite.dao.entity;

import java.io.Serializable;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zero
 * @since 2018-05-04
 */
@TableName("lite_collect")
public class Collect extends Model<Collect> {

    private static final long serialVersionUID = 1L;

	private Integer id;
	@TableField("user_id")
	private Integer userId;
	@TableField("value_id")
	private Integer valueId;
    /**
     * 是否是关注
     */
	@TableField("is_attention")
	private Integer isAttention;
	@TableField("type_id")
	private Integer typeId;
	@TableField("add_time")
	private LocalDateTime addTime;
	private Integer deleted;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getValueId() {
		return valueId;
	}

	public void setValueId(Integer valueId) {
		this.valueId = valueId;
	}

	public Integer getIsAttention() {
		return isAttention;
	}

	public void setIsAttention(Integer isAttention) {
		this.isAttention = isAttention;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public LocalDateTime getAddTime() {
		return addTime;
	}

	public void setAddTime(LocalDateTime addTime) {
		this.addTime = addTime;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Collect{" +
			"id=" + id +
			", userId=" + userId +
			", valueId=" + valueId +
			", isAttention=" + isAttention +
			", typeId=" + typeId +
			", addTime=" + addTime +
			", deleted=" + deleted +
			"}";
	}
}
